package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchPressureReportFormsMapper;
import com.ruoyi.system.domain.DispatchPressureReportForms;
import com.ruoyi.system.service.IDispatchPressureReportFormsService;

/**
 * 压力报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchPressureReportFormsServiceImpl implements IDispatchPressureReportFormsService 
{
    @Autowired
    private DispatchPressureReportFormsMapper dispatchPressureReportFormsMapper;

    /**
     * 查询压力报
     * 
     * @param pressureReportFormsId 压力报主键
     * @return 压力报
     */
    @Override
    public DispatchPressureReportForms selectDispatchPressureReportFormsByPressureReportFormsId(Long pressureReportFormsId)
    {
        return dispatchPressureReportFormsMapper.selectDispatchPressureReportFormsByPressureReportFormsId(pressureReportFormsId);
    }

    /**
     * 查询压力报列表
     * 
     * @param dispatchPressureReportForms 压力报
     * @return 压力报
     */
    @Override
    public List<DispatchPressureReportForms> selectDispatchPressureReportFormsList(DispatchPressureReportForms dispatchPressureReportForms)
    {
        return dispatchPressureReportFormsMapper.selectDispatchPressureReportFormsList(dispatchPressureReportForms);
    }

    /**
     * 新增压力报
     * 
     * @param dispatchPressureReportForms 压力报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchPressureReportForms(DispatchPressureReportForms dispatchPressureReportForms)
    {
        return dispatchPressureReportFormsMapper.insertDispatchPressureReportForms(dispatchPressureReportForms);
    }

    /**
     * 修改压力报
     * 
     * @param dispatchPressureReportForms 压力报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchPressureReportForms(DispatchPressureReportForms dispatchPressureReportForms)
    {
        return dispatchPressureReportFormsMapper.updateDispatchPressureReportForms(dispatchPressureReportForms);
    }

    /**
     * 批量删除压力报
     * 
     * @param pressureReportFormsIds 需要删除的压力报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureReportFormsByPressureReportFormsIds(Long[] pressureReportFormsIds)
    {
        return dispatchPressureReportFormsMapper.deleteDispatchPressureReportFormsByPressureReportFormsIds(pressureReportFormsIds);
    }

    /**
     * 删除压力报信息
     * 
     * @param pressureReportFormsId 压力报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchPressureReportFormsByPressureReportFormsId(Long pressureReportFormsId)
    {
        return dispatchPressureReportFormsMapper.deleteDispatchPressureReportFormsByPressureReportFormsId(pressureReportFormsId);
    }
}
